
from .api_register import ApiRegister

from flask import Flask, request, Blueprint

from . import app_user_paidregister

@app_user_paidregister.route('/user_paidregister', methods=['GET', 'POST'])
    
def register():

    methods = request.method

    info = request.form

    company_id = info.get('company_id')

    need_his_id = info.get('need_his_id')

    pay_status = info.get('pay_status')

    with ApiRegister() as conn_api:

        result_info = conn_api.register(methods, company_id, need_his_id, pay_status)

    return result_info
    

    